package org.teamswift.crow.rbac.primaryKey;

import lombok.Data;

import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
@Data
public class UserForeignKey implements Serializable {

    private Integer userId;

    private Integer foreignId;

    @Override
    public String toString() {
        return String.format("%s-%s", userId, foreignId);
    }

}
